import request from '@/utils/request'


export default{
    // 管理员列表
    adminList(page, size, searchMap) {
        return request({
            url: `manage/admins/manageList?page=${page}&size=${size}`,
            method: 'post',
            data:searchMap
        })
    },
    // 添加管理员
    saveAdmin(data){
        return request({
            url: `manage/admins/saveManage`,
            method: 'post',
            data:data
        })
    },
    // 禁用启用
    disabledAdmin(id,status){
        return request({
            url: `manage/admins/statusChange?id=${id}&status=${status}`,
            method: 'post',
        })
    },
    // 权限组列表
    getGroupList(page, size) {
        return request({
            url: `manage/auth/authGroupList?page=${page}&size=${size}`,
            method: 'get',
        })
    },
}
